package gwtappcontainer.client.apps.home;

import gwtappcontainer.client.IPresenter;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

class HomePresenter implements IPresenter {		
	
	interface IView {
		Widget asWidget();
	}
	
	private IView view;
	
	HomePresenter(IView view) {
		this.view = view;
		bind();
	}
	
	 
	private void bind() {
		//nothing to bind		
	}

	@Override
	public void render(HasWidgets container) {
		container.clear();
		container.add(view.asWidget());		
	}

	@Override
	public String getAppName() {		
		return "home";
	}
}
